﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bussiness;
using System.IO;

namespace Presentation.Controls
{
    public partial class fileupload : System.Web.UI.UserControl
    {
        string savePath;
        string ruta;
        private string _UploadPath;
        private string _ValidationGroup;
        public string UploadPath { get { return (_UploadPath); } set { _UploadPath = value; } }
        public string ValidationGroup { get { return (_ValidationGroup); } set { _ValidationGroup = value; } }
        public FileUpload FileUpload { get { return (fileUpload); } set { fileUpload = value; } }
        public string Titulo { get { return (txtTitulo.Text); } set { txtTitulo.Text = value; } }
        public string Alt { get { return (txtAlt.Text); } set { txtAlt.Text = value; } }
        protected void Page_Load(object sender, EventArgs e)
        {
            RequiredFieldValidator1.ValidationGroup = _ValidationGroup;
            RequiredFieldValidator2.ValidationGroup = _ValidationGroup;
            RequiredFieldValidator3.ValidationGroup = _ValidationGroup;
            RegularExpressionValidator1.ValidationGroup = _ValidationGroup;
        }     
    }
}